<!-- Cập nhật tùy chỉnh trang thong tin cong ty -->                     
<div id="index_page" class="index_page">
   		<?php
        if ( !empty($_POST) && wp_verify_nonce($_POST['company_setting_company_info'],'company_setting_company_info') )
          {
          		update_option( 'mySetting_company_name',stripslashes($_POST['mySetting_company_name']));
          		update_option( 'mySetting_company_address',stripslashes($_POST['mySetting_company_address']));
          		update_option( 'mySetting_company_tel',stripslashes($_POST['mySetting_company_tel']));
          		update_option( 'mySetting_company_fax',stripslashes($_POST['mySetting_company_fax']));
          		update_option( 'mySetting_company_email',stripslashes($_POST['mySetting_company_email']));
          		update_option( 'mySetting_company_email_contact',stripslashes($_POST['mySetting_company_email_contact']));
          		update_option( 'mySetting_company_hotline',stripslashes($_POST['mySetting_company_hotline']));
          		update_option( 'mySetting_company_website',stripslashes($_POST['mySetting_company_website']));
          		update_option( 'mySetting_company_sales',stripslashes($_POST['mySetting_company_sales']));
          		update_option( 'mySetting_company_support_online',stripslashes($_POST['mySetting_company_support_online']));

          		$gmap = get_option("mySetting_company_support_google_map");
          		if($gmap)
          			delete_option("mySetting_company_support_google_map");          		
          		$post_src = strpos(stripslashes($_POST['mySetting_company_support_google_map']), "src=");
          		if($post_src)
          		{
          			$post_src = $post_src + 5;
          		}
          		$map	  = substr(stripslashes($_POST['mySetting_company_support_google_map']), $post_src);          		
          		$post_embed = strpos($map, "embed");
          		$map = substr($map, 0,$post_embed+5);
          		//print_r($map);
          		update_option( 'mySetting_company_support_google_map',$map);
          ?>
          		<div id="index_message" name="index_message" class="updated">Update Sucess!</div>
          <?php
          }
        ?>
  
   <form action="" method="post" id="config_company_info" >
   	
   	  <label for="mySetting_company_name"><strong>Company Name:</strong></label><br/>
      <input type="text" name="mySetting_company_name" size="80"  value="<?php echo esc_attr( get_option('mySetting_company_name') ); ?>"/><br/><br/>
      	
   	  <label for="mySetting_company_address"><strong>Company Address:</strong></label><br/>
      <input type="text" name="mySetting_company_address" size="80"  value="<?php echo esc_attr( get_option('mySetting_company_address') ); ?>"/><br/><br/>
   
      <label for="mySetting_company_tel"><strong>Company Tel:</strong></label><br/>
      <input type="text" name="mySetting_company_tel" size="80"  value="<?php echo esc_attr( get_option('mySetting_company_tel') ); ?>"/><br/><br/>
      
      <label for="mySetting_company_fax"><strong>Company Fax:</strong></label><br/>
      <input type="text" name="mySetting_company_fax" size="80"  value="<?php echo esc_attr( get_option('mySetting_company_fax') ); ?>"/><br/><br/>
            
      <label for="mySetting_company_email"><strong>Company Email:</strong></label><br/>
      <input type="text" name="mySetting_company_email" size="80"  value="<?php echo esc_attr( get_option('mySetting_company_email') ); ?>"/><br/><br/>
      
       <label for="mySetting_company_email_contact"><strong>Email Contact:</strong></label><br/>
      <input type="text" name="mySetting_company_email_contact" size="80"  value="<?php echo esc_attr( get_option('mySetting_company_email_contact') ); ?>"/><br/><br/>
      
      <label for="mySetting_company_hotline"><strong>Company Hotline:</strong></label><br/>
      <input type="text" name="mySetting_company_hotline" size="80"  value="<?php echo esc_attr( get_option('mySetting_company_hotline') ); ?>"/><br/><br/>
      
      <label for="mySetting_company_website"><strong>Website:</strong></label><br/>
      <input type="text" name="mySetting_company_website" size="80"  value="<?php echo esc_attr( get_option('mySetting_company_website') ); ?>"/><br/><br/>
      
      <label for="mySetting_company_sales"><strong>Sales Hours:</strong></label><br/>
      <input type="text" name="mySetting_company_sales" size="80"  value="<?php echo esc_attr( get_option('mySetting_company_sales') ); ?>"/><br/><br/>
      
      
      <h3 style="font-style: italic;">Support Online</h3>
      
      <label for="mySetting_company_support_online"><strong>List yahoo support online(nickname-e-name):</strong> (Ex: dbthanhbinh-Mr.binh,dbthanhbinh-Mr.binh...)</label><br/>
      <textarea rows="2" cols="100" name="mySetting_company_support_online"><?php echo esc_attr( get_option('mySetting_company_support_online') ); ?></textarea>
      <br/>
      <label for="mySetting_company_support_google_map"><strong>Google map:</strong></label><br/>
      <textarea rows="5" cols="80" name="mySetting_company_support_google_map"><?php echo esc_attr( get_option('mySetting_company_support_google_map') ); ?></textarea>
      
      
      <br/>   
    <input type="submit" name="list_yahoo_name_submit" value="Update" style="border-style:outset;border-width: 2px;font-weight: bold" /></p>
    <?php wp_nonce_field('company_setting_company_info','company_setting_company_info'); ?>

   </form>		           
</div>